/*
 * Copyright (c) 2015 Messcat. All rights reserved.
 * 
 */
package cc.messcat.service.system;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.io.File;
import java.util.List;
import java.util.Map;

/**
 * 系统接口 数据备份
 * 
 * @author Microcat
 * @version 1.0
 */
public interface SystemService {

	File backupData() throws Exception;

	/**
	 * 年度数据备份
	 * @throws Exception 
	 */
	Map<String,Object> annualBackup(Integer origin, Integer derivation,HttpSession session,HttpServletRequest request) throws Exception;
	
	
	/**
	 * 备份情况获取，用于判断是否已备份
	 */
	boolean isBackup(Integer origin, Integer derivation);

	/**
	 * 获取业务年度
	 */
	String getBusinessAnnual();

	Map<String, String> restore(Integer origin, Integer derivation);

    List<Map<String,String>> getBackupInfo();
}
